﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LeftMenuList.aspx.cs" Inherits="WEALTH.Manager.Customer.LeftMenuList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <link href="../css/admin.global.css" rel="stylesheet" type="text/css" />
    <link href="../css/admin.content.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="../js/jquery.utils.js"></script>
    <link href="../jBox/Skins/Green/jbox.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../jBox/jquery.jBox-2.3.min.js"></script>
    <script type="text/javascript" src="../js/admin.js"></script>
    <script type="text/javascript" src="../js/gridview_setting.js"></script>
    <script type="text/javascript">

        // 设置标题
        Index.SetTitle('前台菜单列表');

        // 清空所有检索条件
        function cleartext() {

            jQuery("#txtLeftMenuName").val("");
            jQuery("#txtLeftMenuType").val("");

            return true;
        }       
    </script>
</head>
<body>
    <div class="container">
        <form id="Form1" runat="server">
        <div class="location">
            当前位置：前台菜单管理 -&gt; 菜单列表</div>
        <div class="blank10">
        </div>
        <div class="search block">
            <div class="h">
                <span class="icon-sprite icon-magnifier"></span>
                <h3>
                    快速搜索</h3>
            </div>
            <div class="tl corner">
            </div>
            <div class="tr corner">
            </div>
            <div class="bl corner">
            </div>
            <div class="br corner">
            </div>
            <div class="cnt-wp">
                <div class="cnt">
                    <div class="search-bar">
                        <table width="100%">
                            <tr>
                                <td>
                                    <label class="first txt-green">
                                        菜单名称：</label>
                                    <asp:TextBox ID="txtLeftMenuName" runat="server" CssClass="input-small"></asp:TextBox>
                                </td>
                                <td>
                                    <label class="txt-green">
                                        菜单类型：</label>
                                    <asp:TextBox ID="txtLeftMenuType" runat="server" CssClass="input-small"></asp:TextBox>
                                </td>
                                <td align="right">
                                    <span class="btn-ctl-span">
                                        <asp:Button ID="btnSearch" runat="server" Text="搜索" OnClick="btnSearch_Click" /></span>
                                    <span class="btn-ctl-span">
                                        <input type="button" id="btnClear" onclick="cleartext();" value="清空" /></span>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <div class="blank10">
        </div>
        <div class="block">
            <div class="h">
                <span class="icon-sprite icon-list"></span>
                <h3>
                    前台菜单列表</h3>
                <div class="bar">
                    <a class="btn-lit" href="javascript:Index.Open('Customer/AddLeftMenu.aspx');"><span>
                        新增</span></a> <span class="btn-ctl-span">
                            <asp:Button ID="btnSubmit" runat="server" Text="删除" OnClick="btnSubmit_Click" /></span>
                </div>
            </div>
            <div class="tl corner">
            </div>
            <div class="tr corner">
            </div>
            <div class="bl corner">
            </div>
            <div class="br corner">
            </div>
            <div class="cnt-wp">
                <div class="cnt">
                    <asp:GridView ID="gvLeftMenu" runat="server" CssClass="data-table" border="0" CellPadding="0"
                        Width="100%" EnableTheming="True" AllowSorting="True" AutoGenerateColumns="False"
                        OnRowDataBound="gvLeftMenu_RowDataBound" AllowPaging="True" OnPageIndexChanging="gvLeftMenu_PageIndexChanging"
                        OnSorting="gvLeftMenu_Sorting" GridLines="None" OnDataBound="gvLeftMenu_DataBound">
                        <Columns>
                            <asp:HyperLinkField DataNavigateUrlFields="MenuID" DataTextField="MenuID" HeaderText="菜单ID"
                                NavigateUrl="../Customer/EditLeftMenu.aspx" DataNavigateUrlFormatString="../Customer/EditLeftMenu.aspx?LeftMenuID={0}"
                                SortExpression="MenuID" ItemStyle-CssClass="l" ItemStyle-Width="10%" />
                            <asp:BoundField DataField="MenuName" SortExpression="MenuName" ItemStyle-Width="10%"
                                ItemStyle-CssClass="l" HeaderText="菜单名称" />
                            <asp:BoundField DataField="MenuType" SortExpression="MenuType" ItemStyle-Width="10%"
                                ItemStyle-CssClass="l" HeaderText="菜单类型" />
                                <asp:BoundField DataField="MenuAddUser" SortExpression="MenuAddUser" ItemStyle-Width="10%"
                                ItemStyle-CssClass="l" HeaderText="保存用户" />
                                <asp:BoundField DataField="MenuAddDate" SortExpression="MenuAddDate" ItemStyle-Width="10%"
                                ItemStyle-CssClass="l" HeaderText="保存时间" />
                            <asp:TemplateField HeaderText="选择">
                                <ItemTemplate>
                                    <asp:CheckBox ID="chkdelete" runat="server" Checked="false" />
                                </ItemTemplate>
                                <ItemStyle Width="2%"></ItemStyle>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </div>
                <script type="text/javascript">
                var pagerUrl = 'Customer/LeftMenuList.aspx?pageIndex={0}';
                Pager.Output(pagerUrl,<%=pageSize %>, <%=pageIndex %>, <%=pageCount %>, <%=recordCount %>); //(urlFormat, pageSize, pageIndex, pageCount, recordCount)
                </script>
            </div>
        </div>
        </form>
    </div>
</body>
</html>
